﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class yuangong
    {
        int id;
        string name;
        string message;

        public int ID
        {
            get {return this.id; }
            set {this.id= value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
       
        public string Message
        {
            get { return this.message; }
            set { this.message = value; }
        }
        public void dy()
        {
            Console.WriteLine("ID:：{0},名字：{1},部门信息：{2}", this.id, this.name, this.message);
        }
        public void yuang(int id,string name,string message)
        {
            this.ID = id;
            this.Name = name;
            this.Message = message;
        }
    }
}
